import request from '@/utils/request'

export default {
  addVideo(videoInfo) {
    return request({
      url: `/eduservice/video`,
      method: 'post',
      data: videoInfo
    });
  },
  updateVideo(videoInfo) {
    return request({
      url: `/eduservice/video`,
      method: 'put',
      data: videoInfo
    });
  },
  getVideoInfo(videoId) {
    return request({
      url: `/eduservice/video/getVideoInfo/${videoId}`,
      method: 'get'
    });
  },
  deleteVideo(videoId) {
    return request({
      url: `/eduservice/video/${videoId}`,
      method: 'delete'
    });
  },
  deleteAliyunVod(id) {
    return request({
      url: `/eduvod/vod/${id}`,
      method: 'delete'
    })
  }
}
